package com.zwd.cases.demo.gof23.decorator;

/**
 * @Description 定义装饰器抽象类ShapeDecorator，实现Shape接口，表示图形装饰器
 * @Author zhengwd
 * @Date 2023/4/11 9:51
 **/
public abstract class ShapeDecorator implements Shape {
    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape) {
        this.decoratedShape = decoratedShape;
    }

    public void draw() {
        decoratedShape.draw();
    }
}
